package com.example.springdata_repositories.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.io.Serializable;


@Data
@Document(indexName = "students",replicas = 0,shards = 1)
public class Students implements Serializable,Cloneable {

    @Id
    private String sid;
    //@Field(type = FieldType.Text, name = "name",analyzer = "standard")
    private String name;

    //@Field(type = FieldType.Integer, name = "age",analyzer = "standard")
    private int age;
}
